package com.seedwill.common.unit;

import java.util.List;

import com.seedwill.common.meta.IContext;
import com.seedwill.common.meta.IIdentity;

/**
 * 最小处理单位
 * 
 * @author kdyi
 *
 */
public interface ICell extends IIdentity {

	public ICell getParentCell();
	
	public void setParentCell(ICell cell);
	
	public Object process(IContext ctx);
	
	public List<ICell> getChildren();
	
	public void setChildren(List<ICell> children);
	
	public void addChild(ICell child);
	
	public void removeChild(ICell child);
	
	public void removeChildById(java.io.Serializable childId);
	
	public boolean hasChildren();
}
